﻿<%@ page language="C#" autoeventwireup="true" inherits="_Default, App_Web_qs18olmt" maintainscrollpositiononpostback="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>User Registration</title>
    <style type="text/css">
        .style1
        {
            width: 128px;
        }
        .style2
        {
            width: 136px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
            <table id="Table2" border="0">
                <tr>
                    <td colspan="4" align="center">
                        <asp:Label ID="lblMsg" Text="" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="4">
                        <strong>User Information</strong>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="4">
                        <asp:GridView ID="gvUserInfo" runat="server" CellPadding="4" 
                            ForeColor="#333333" GridLines="None"
                            OnSelectedIndexChanged="gvUserInfo_SelectedIndexChanged">
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#EFF3FB" />
                            <Columns>
                                <asp:CommandField ShowSelectButton="True" />
                            </Columns>
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#2461BF" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                </tr>
            </table>
            <asp:Panel ID="panel1" runat="server" Height="534px" Width="504px">
                <table id="Table1" border="0" runat="server">
                    <tr>
                        <td class="style2">
                            <asp:Label ID="lblFirstName" Text="First Name : " runat="server"></asp:Label>
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtFirstName" Width="100" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFirstName"
                                Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            <asp:Label ID="lblMiddleName" Text="Middle Name : " runat="server"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtMiddleName" Width="100" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic"
                                ErrorMessage="*" SetFocusOnError="True" ControlToValidate="txtMiddleName"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="lblFatherName" Text="Father Name : " runat="server"></asp:Label>
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtFatherName" Width="100" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic"
                                ErrorMessage="*" SetFocusOnError="True" ControlToValidate="txtFatherName"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            <asp:Label ID="lblLastName" Text="Last Name : " runat="server"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLastName" Width="100" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="Dynamic"
                                ErrorMessage="*" SetFocusOnError="True" ControlToValidate="txtLastName"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="lblBirthDate" Text="Date of Birth :" runat="server"></asp:Label>
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtDateOfBirth" Width="100" runat="server"></asp:TextBox>
                            <asp:Image ID="imgCal" runat="server" ImageUrl="~/images/images.jpg" Width="20" Height="16" />
                            <cc1:CalendarExtender ID="txtDateOfBirth_CalendarExtender" runat="server" TargetControlID="txtDateOfBirth"
                                PopupButtonID="imgCal" Format="dd/MM/yyyy">
                            </cc1:CalendarExtender>
                        </td>
                        <td>
                            <asp:Label ID="lblBloodGroup" Text="Blood Group :" runat="server"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlBloodGroup" runat="server">
                                <asp:ListItem>- Select -</asp:ListItem>
                                <asp:ListItem>A+</asp:ListItem>
                                <asp:ListItem>A-</asp:ListItem>
                                <asp:ListItem>B+</asp:ListItem>
                                <asp:ListItem>B-</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                        </td>
                        <td class="style1">
                        </td>
                        <td>
                            <asp:Label ID="lblGender" Text="Gender:" runat="server"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlGender" runat="server" Height="16px">
                                <asp:ListItem>- Select -</asp:ListItem>
                                <asp:ListItem>Male</asp:ListItem>
                                <asp:ListItem>Female</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="lblinitial" Text="Initial : " runat="server"></asp:Label>
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtInitial" Width="100" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <strong>
                                <asp:Label ID="lblPermenentAddress" runat="server" 
                                Text="Permenent Address : " Width="137px"></asp:Label></strong>
                        </td>
                        <td class="style1">
                        </td>
                        <td>
                            <strong>
                                <asp:Label ID="lblCurrentAddress" runat="server" Text="Current Address : " 
                                Width="125px"></asp:Label></strong>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txtPermenentAddress" Width="151px" runat="server" 
                                TextMode="MultiLine"></asp:TextBox>
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="txtCurrentAddress" Width="200" runat="server" TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="lblPerCity" runat="server" Text="City : "></asp:Label>
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtPerCity" Width="100" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Label ID="lblCurCity" runat="server" Text="City : "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCurCity" Width="100" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="lblPerState" runat="server" Text="State : "></asp:Label>
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtPerState" Width="100" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Label ID="lblCurState" runat="server" Text="State : "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCurState" Width="100" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="lblPerCountry" runat="server" Text="Country : "></asp:Label>
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtPerCountry" Width="100" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Label ID="lblCurCountry" runat="server" Text="Country : "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCurCountry" Width="100" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <strong>
                                <asp:Label ID="lblContactDetails" runat="server" Text="Contact Details : "></asp:Label></strong>
                        </td>
                        <td>
                            <strong>
                                <asp:Label ID="lblEmailIds" runat="server" Text="Email : "></asp:Label></strong>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="lblPhoneNumbers" runat="server" Text="Phone Numbers: "></asp:Label>
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtResideceNumbers" Width="100" runat="server"></asp:TextBox>
                            <asp:Label ID="lblResidenceNumber" runat="server" Text="( R )"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblOfficeEmail" runat="server" Text="Office : "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtOfficeEmail" Width="100" runat="server"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtOfficeEmail"
                                Display="Dynamic" ErrorMessage="*" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtMobileNumber" Width="100" runat="server"></asp:TextBox>
                            <asp:Label ID="lblMobileNumber" runat="server" Text="( M )"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblPersonalEmail" runat="server" Text="Personal : "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtPersonalEmail" Width="100" runat="server"></asp:TextBox>                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtPersonalEmail"
                                Display="Dynamic" ErrorMessage="*" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtOfficeNumber" Width="100" runat="server"></asp:TextBox>
                            <asp:Label ID="lblOfficeNumber" runat="server" Text="( O )"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="lblDateOfJoining" runat="server" Text="Date of Joining : "></asp:Label>
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtDateOfJoining" Width="100" runat="server"></asp:TextBox>
                            <asp:Image ID="imgdoj" runat="server" ImageUrl="~/images/images.jpg" Width="20" Height="16" />
                            <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDateOfJoining"
                                PopupButtonID="imgdoj" Format="dd/MM/yyyy">
                            </cc1:CalendarExtender>
                        </td>
                        <td>
                            <asp:Label ID="lblPanNo" runat="server" Text="PAN No : "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtPANNo" Width="100" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="4">
                            <asp:Button ID="btnAdd" runat="server" Text="Add" Width="70" OnClick="btnAdd_Click" />
                            <asp:Button ID="btnSave" runat="server" Text="Save" Width="70" OnClick="btnSave_Click" />
                            <asp:Button ID="btnUpdate" runat="server" Text="Update" Width="70" OnClick="btnUpdate_Click" />
                            <asp:Button ID="btnDelete" runat="server" Text="Delete" Width="70" OnClick="btnDelete_Click" />
                            <asp:Button ID="btnCancel" runat="server" Text="Cancel" Width="70" OnClick="btnCancel_Click" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
    </form>
</body>
</html>
